﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Code.BLL.Arithmetic.Comm;
using Code.Models;

namespace Code.BLL.Arithmetic
{
    /// <summary>
    /// 十一运夺金
    /// </summary>
    internal class SYRDJ : LotteryTypeProduct
    {
        private string _OpenCode;
        public override PlayTypeProduct GetPlayType(Code.Models.PlayType_E playType)
        {
            PlayTypeProduct product;
            //前三直选 前三组选 前二直选 前二组选 任选1 任选2 任选3 任选4 任选5 任选6 任选7 任选8
            switch (playType)
            { 
                //case Code.Models.PlayType_E.QianSanZhiXuan:
                //    product = new QianSanZhiShuan(regQianSanZhiShuan );break;
                //case Code.Models.PlayType_E .QianSanZuXuan:
                //    product = new QianSanZuShuan( regQianSanZuShuan );break;
                //case Code.Models.PlayType_E.QianerZhiXuan:
                //    product = new QianerZhiShuan(regQianerZhiShuan);break;
                //case Code.Models.PlayType_E.QianerZuXuan:
                //    product = new QianerZuShuan(regQianerZuShuan  );break;
                //case Code.Models.PlayType_E.Chose1:
                //    product = new Chose1(regChose1);break;
                //case Code.Models.PlayType_E.Chose2:
                //    product = new Chose2(regChose2 );break;
                //case Code.Models.PlayType_E.Chose3:
                //    product = new Chose3(regChose3 );break;
                //case Code.Models.PlayType_E.Chose4:
                //    product = new Chose4(regChose4);break;
                //case Code.Models.PlayType_E.Chose5:
                //    product = new Chose5(regChose5 );break;
                //case Code.Models.PlayType_E.Chose6:
                //    product = new Chose6(regChose6);break;
                //case Code.Models.PlayType_E.Chose7:
                //    product = new Chose7(regChose7);break;
                //case Code.Models.PlayType_E.Chose8:
                //    product = new Chose8(regChose8);break;
                default:
                    throw new Exception("十一运夺金没有当前彩种:"+playType);
            }
            //product.lotteryType=LotteryType.SYRDJ;
            return product;
        }
        private static Regex regQianSanZhiShuan = RegexFormats.ThreeStar;

        private static Regex regQianSanZuShuan =  regQianSanZhiShuan;

        private static Regex regQianerZhiShuan = RegexFormats.TwoStar;

        private static Regex regQianerZuShuan =  regQianerZhiShuan;

        private static Regex regChose1 = new Regex(@"^\d{1,}$");

        private static Regex regChose2 = new Regex(@"^\d{2,}$");

        private static Regex regChose3 = new Regex(@"^\d{3,}$");

        private static Regex regChose4 = new Regex(@"^\d{4,}$");

        private static Regex regChose5 = new Regex(@"^\d{5,}$");

        private static Regex regChose6 = new Regex(@"^\d{6,}$");

        private static Regex regChose7 = new Regex(@"^\d{7,}$");

        private static Regex regChose8 = new Regex(@"^\d{8,}$");
    }
}
